package the.formula.calculator;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Objects extends Activity{

        @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.three_dimensional_shapes);
    }
        
    public void onClick(View v) {
        Intent i = null;
        switch(v.getId()) {
            case R.id.cube:
                i = new Intent(this, Cube.class);
                break;
            case R.id.rectangularPrism:
                i = new Intent(this, RectangularPrism.class);
                break;
            case R.id.triangularPrism:
                i = new Intent(this, TriangularPrism.class);
                break;
            case R.id.sphere:
                i = new Intent(this, Sphere.class);
                break;
            case R.id.pyramid:
                i = new Intent(this, Pyramid.class);
                break;
            case R.id.cylinder:
                i = new Intent(this, Cylinder.class);
                break;
            case R.id.cone:
                i = new Intent(this, Cone.class);
                break;
            case R.id.ellipse:
                i = new Intent(this, Ellipse.class);
                break;
            }
            if(i != null) {
                startActivity(i);
            }
        }
}